package com.unittec.zk.provider.auth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unittec.zk.provider.auth.entity.SysRole;
import com.unittec.zk.provider.auth.entity.SysUserRole;

/**
 * @author Jason
 * @description 用户角色Mapper
 * @date 2019/11/07
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据用户ID获取角色
     *
     * @param userId
     * @return
     */
    List<SysRole> getSysRoleByUserId(@Param("userId") String userId);
}
